import { ApiProperty } from '@nestjs/swagger'
import { IsNotEmpty, IsString } from 'class-validator'

export class ModifyAvatarDto {
  @ApiProperty({ description: '', required: true, default: '' })
  @IsNotEmpty({ message: '头像必填' })
  @IsString({ message: '头像必须为字符串' })
  readonly avatar: string
}